﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using DTO;
using System.Data;

namespace DAO
{
    public class daoNhanVien
    {
       public int KiemTraDangNhap(dtoNhanVien NhanVien)
        {
            string proc_name = "usp_KiemTraDN";
            var parameters = new List<SqlParameter>
                                 {
                                     new SqlParameter("@TenTaiKhoan ", NhanVien.TenTaiKhoan){ SqlDbType = SqlDbType.VarChar },
                                     new SqlParameter("@MatKhau  ", NhanVien.MatKhau){ SqlDbType = SqlDbType.VarChar },
                                 };
            var output = new SqlParameter("@KQ", SqlDbType.Int) { Direction = ParameterDirection.Output };
            return (int)DataProvider.spInsert_Update_Test(proc_name, parameters, output);
        }
    }
}
